package com.dk.controller;

import com.dk.pojo.TCountry;
import com.dk.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("countryController")
public class CountryController {

    @Autowired
    private CountryService countryService;

    @RequestMapping("selectPro")
    @ResponseBody
    public List<TCountry> selectPro(Integer pid){
        List<TCountry> list = countryService.selectPro(pid);
        return list;
    }
}
